<template>
  <div>
    App组件
  </div>
  <Son :thing="thing" @getGift="getGift"/>
</template>
  
<script setup lang="ts">
import {ref} from 'vue'
import Son from './components/Son.vue'
const thing=ref('父传子')
const getGift=(gift:string)=>{
console.log('礼物:'+gift)
}
</script>
  
  <style scoped>
</style>
